<template>
	<div>
		<Detail :id="$route.query.id" v-if="$route.query.id" />
		<List v-else />
	</div>
</template>

<script setup lang="ts">
defineOptions({
	name: "Order"
})
// 引入子组件
import Detail from "./detail/index.vue"
import List from "./list/index.vue"
</script>

<style scoped></style>